package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lambyang
 * @since 2024-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_return_log")
public class ReturnLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long personId;

    /**
     * 书籍id
     */
    private Long bookId;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 归还时间
     */
    private Date returnTime;

    public ReturnLog(Long personId, Long bookId, Integer state, Date returnTime) {
        this.personId = personId;
        this.bookId = bookId;
        this.state = state;
        this.returnTime = returnTime;
    }
}
